package com.sy.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 课程小节表
 * sections
 */
@Data
@Schema(description = "小节实体类")
public class Sections implements Serializable {
    /**
     * 小节ID
     */
    @Schema(description = "小节ID")
    private Integer id;

    /**
     * 章节ID
     */
    @Schema(description = "章节ID")
    private Integer chapterid;

    /**
     * 小节名称
     */
    @Schema(description = "小节名称")
    private String name;

    /**
     * 视频URL
     */
    @Schema(description = "小节视频路径")
    @JsonAlias("url")
    private String videoUrl;

    /**
     * 视频时长（秒）
     */
    @Schema(description = "视频时长")
    private String duration;

    /**
     * 是否免费：0付费，1免费
     */
    @Schema(description = "付费字段" ,example = "false",defaultValue = "false")
    private boolean free;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}